package cu.tedu.io;


import java.io.*;
import java.lang.reflect.Method;

public class Test1 {
    public static void main(String[] args) throws IOException {


      //  method();
        method2();

    }

    public static void method2() throws IOException {
        OutputStream out =
                new BufferedOutputStream(new FileOutputStream("E:\\小龙人\\5.txt",true));

        out.write(90);

        out .write(98);
        out.write(99);
        //out.close();

         out.flush();
        out.write(97);





    }

    public static void method() throws IOException {
        OutputStream out = new FileOutputStream("E:\\小龙人\\5.txt");

        out.write(97);
        out.write(98);
        out.write(99);
        out.write(100);

        byte[] bs = {97, 98, 99};
        out.write(bs);
        out.close();




    }


}
